<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <!--<ul class="nav nav-tabs">
        <li><a href="{:url('AdminDiary/index')}">日记管理</a></li>
        <li class="active"><a href="{:url('AdminDiary/add')}">添加日记</a></li>
        &lt;!&ndash;<li><a  href="{:url('nav/edit')}" >{:lang('ADMIN_NAV_EDIT')}</a></li>&ndash;&gt;
    </ul>-->
    <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('AdminDiary/editPost')}">
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required">*</span>日记内容:</label>
            <div class="col-md-8 col-sm-10">
                <input type="hidden" name="id" value="{$post.id}">
                <textarea class="form-control" name="msg" style="height: 150px;" placeholder="请填写日记">{$post.msg}</textarea>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required">*</span>年份:</label>
            <div class="col-md-8 col-sm-10">
                <input type="text" class="form-control" name="year" value="{$post.year}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required">*</span>时间戳:</label>
            <div class="col-md-8 col-sm-10">
                <input type="text" class="form-control" name="create_time" value="{$post.create_time}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">状态:</label>
            <div class="col-md-8 col-sm-10">
                <select name="status" class="form-control">
                    <foreach name="arrStatus" key="k" item="vo">
                        <option value="{$k}" {$post.status == $k?'selected':''}>{$vo}</option>
                    </foreach>
                </select>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-primary js-ajax-submit">{:lang("SAVE")}</button>
                <a class="btn btn-default" href="{:url('index')}">返回</a>
            </div>
        </div>
    </form>

</div>
<script src="__STATIC__/js/admin.js?v={$_static_version}"></script>
</body>
</html>
